<!-- /* Description for file.
 * 寻访信息
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/resources
 * @since         ues
 * @version       V0.0.1
 * @modifiedby   会兵2011年0709
 * @lastmodified  会兵2011年0709
 */
 -->
<?php
echo $html->css ( 'tab' );
?>
<script type="text/javascript">
$(function()
		{
			$("#close").click(function(){
				window.close();
			});
			$("#addbutton").click(function(){
				window_location_href('<?php echo ROOT_WEB_PATH; ?>/visitorrecords/visitoraddmind/<?php echo $visitorrecord['Visitorrecord']['id'];?>');
			});
			$("#resume").click(function(){
				window_location_href('<?php echo ROOT_WEB_PATH; ?>/resumes/resumedetail/<?php echo $visitorrecord['Visitorrecord']['resume_id'];?>');
			});
});
</script>
<div class="tabflex">
<?php echo $form->create('Visitorrecord',array('action'=>'editmind/'.$visitorrecord['Visitorrecord']['id'],'type'=> 'post'));?>
<table width="95%" align="center" cellSpacing="0" cellPadding="0" border="0">
  <tr>
 	<td>&nbsp;</td> 
    <td width="10%"><?php echo $form->button('新增',array('class'=>'btn2','id'=>'addbutton'));?></td>
    <td width="10%"><?php echo $form->button('修改',array('class'=>'btn2','type'=>'submit'));?></td>
    <td width="10%"><?php echo $form->button('关闭',array('class'=>'btn2','id'=>'close'));?></td>
    <td width="10%"><?php echo $form->button('简历',array('class'=>'btn2','id'=>'resume'));?></td>
    <td>&nbsp;</td> 
  </tr>
</table>
<?php 
	$index = count($visitorrecords);
	foreach ($visitorrecords as $k => $v)
	{
		echo "<table width='95%' align='center' cellSpacing='0' cellPadding='0' border='0'><TR><td width='70px'>&nbsp;</td><td><a>第";
		echo $index - $k;
		echo "次寻访记录,</a></td><td><a>寻访时间：";
		echo $v['Visitorrecord']['visitorTime'];
		echo "</a></td><td><a>添加人：";
		echo $v['Visitorrecord']['creater'];
		echo "</a></td><td><a>客户：";
		echo $v['Projectmanagement']['projectCompany'];
		echo "</a></td><td><a>职位：";
		echo $v['Projectmanagement']['projectCompanyPosition'];
		echo "</a></td><td><a>项目编号：";
		echo $v['Projectmanagement']['projectCode'];
		echo "</a></td><td><a>寻访状态：";
		echo $v['Visitorstate']['name'];
		echo "</a></td></TR></table><div width='95%'>";
		echo $form->textarea('visitorMind',array('value'=>$v['Visitorrecord']['visitorMind'],'lable'=>false,'class'=>'areaStyle','disabled'=>'disabled'));
		echo "</div>";
	}
?>
<?php echo $form->end();?>
</div>